package com.woniuxy.carlife.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author fx
 * @ClassName:Coupon
 * @Description: 优惠券实体类
 * @date 2021/4/6 20:00
 **/

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_coupon")
@ApiModel(value="Coupon优惠券对象", description="")
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

        @ApiModelProperty(value = "主键、自增", required = true, dataType = "Integer")
        @TableId(value = "coupon_id", type = IdType.AUTO)
        private Integer couponId;

        @ApiModelProperty(value = "优惠券名称", required = true, dataType = "String")
        private String couponName;

        @ApiModelProperty(value = "优惠券类别id", required = true, dataType = "Integer")
        private Integer couponCategoryId;

        @ApiModelProperty(value = "优惠券分类(满减券/无门槛券等)", required = true, dataType = "String")
        private String couponCategoryName;

        @ApiModelProperty(value = "满减优惠券额度(最低优惠的消费标准，默认为0)", required = true, dataType = "BigDecimal")
        private BigDecimal couponQuota;

        @ApiModelProperty(value = "优惠金额", required = true, dataType = "BigDecimal")
        private BigDecimal couponPreferentialAmount;

        @ApiModelProperty(value = "优惠券有效期(按天数算)，领优惠券的时候开始计算过期时间", required = true, dataType = "Integer")
        private Integer couponExpireTime;

        @ApiModelProperty(value = "优惠券状态(已发放/未发放/删除/已领完)", required = true, dataType = "String")
        private String couponStatus;

        @ApiModelProperty(value = "优惠券数量", required = true, dataType = "Integer")
        private Integer couponNumber;

        @ApiModelProperty(value = "优惠券创建时间")
        private Date couponCreateTime;

        @ApiModelProperty(value = "优惠券修改时间")
        private Date couponUpdateTime;


}
